//
//  SettlementCell.m
//  ScalperMerchant
//
//  Created by 王云 on 2017/12/2.
//  Copyright © 2017年 WY. All rights reserved.
//

#import "SettlementCell.h"

@implementation SettlementCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}
- (void)setItem:(NSDictionary *)item{
    _item = item;
    
    _titleL.text = [_item hw_safeObjectForKey:@"goods_name"];
    _codeL.text = [NSString stringWithFormat:@"劵码：%@",[_item hw_safeObjectForKey:@"code"]];
    _timeL.text = [HWCommon getTimeStr:[_item hw_safeObjectForKey:@"usetime"] format:@"yyyy-MM-dd HH:mm:ss"];
    
    _priceL.text = [NSString stringWithFormat:@"+%@",[_item hw_safeObjectForKey:@"goods_costprice"]];
}


@end
